package com.luke.exercise.annotation;

import java.lang.reflect.Method;

public class ReflectAnnotationTracker {

    public static void trackerRelectAnnotation(Class<?> c) {
        for(Method method : c.getMethods()) {
            ReflectionAnnotation reflectionAnnotation = method.getAnnotation(ReflectionAnnotation.class);
            if ( null != reflectionAnnotation) {
                System.out.println(reflectionAnnotation.author()+"-"+reflectionAnnotation.date()+"-"+reflectionAnnotation.version());
            }
        }
    }
}
